﻿using SaaS.Core;
using XCore.Redis;

namespace SaaS.Cache
{
    public abstract class CacheServiceBase : RedisDatabase
    {
        /// <summary>
        /// 默认指定-1库
        /// </summary>
        protected override int Db => base.Db;

        /// <summary>
        /// 构造，默认配置库
        /// </summary>
        public CacheServiceBase() : base(CoreSetting.RedisConnectionString)
        {
        }
    }
}
